/* .card {
  display: flex;
  flex-direction: column;
  align-content: center;
  gap: 5px;
  position: relative;
  margin: 20px 0;
} */
.card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-content: flex-start;
  position: relative;
  margin: 30px 0;
  box-shadow: none;
  padding: 20px;
  box-sizing: border-box;
  transition: all .5s;
}

.card:hover {
  transform: scale(1.07);
  box-shadow: 0px 10px 15px -8px gray;
  transition: all .5s;
}

.discount {
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 10;
}

.backgroundDiscount {
  background-color: red;
  border-radius: 10px;
  padding: 2px 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.tag {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 5;
}

.likeContainer {
  position: absolute;
  bottom: -5px;
  right: -10px;
  z-index: 10;
}

.num {
  position: absolute;
  bottom: -15px;
  right: 3px;
}

.like {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  fill: rgba(128, 128, 128, 0.5);
  transition: all .3s;
}

.like:hover {
  fill: rgba(128, 128, 128, 0.6);
  transform: scale(1.1);
}

.like:active {
  transform: scale(.9);
}


.likeActive {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  fill: red;
  transition: all .3s;

}

.likeActive:hover {
  fill: rgba(255, 0, 0, 0.7);
  transform: scale(1.1);
}

.likeActive:active {
  transform: scale(.9);
}

.link {
  text-decoration: none;
  color: currentColor;
}

.image {
  position: relative;

}

.image img {
  /* position: absolute; */
  /* top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%); */
  width: 100%;
  object-fit:contain;
  margin-bottom: 16px;
}



.descr {
  padding-top: 16px;
    margin-bottom: 20px;
}

.descr span {
  display: block;
}

.oldprice {
  font-size: 12px;
  text-decoration: line-through;
}

.price {
    font-weight: 600;
    font-size: 16px;
}

.redprice {
  color: red;
  font-size: 18px;
}

.wight {
    font-weight: 100;
    color: grey;
    font-size: 12px;
}

.title {
  padding-top: 15px;
  line-height: 1.25;
}

.add {
  margin-top: auto;
  justify-self: flex-end;
  text-align: center;
  position: relative;
}

.linkBtn {
  padding: 10px 15px;
  background-color: rgb(255, 255, 43, 0.7);
  border-radius: 20px;
  /* font-size: 1.3vw; */
  text-decoration: none;
  color: black;
  transition: all .1s linear;
  cursor: pointer;
}

.linkBtn.inBasket {
  background-color: rgba(255, 255, 169, 0.7);
}

.linkBtn:hover {
    background-color:  rgba(202, 66, 7, 0.536);
    color: rgb(0, 0, 0);
    box-shadow: 0 7px 7px -4px gray;
    font-size: 17px;
}


@media (max-width: 790px) {
  .card {
    grid-template-rows: 13rem 7rem auto auto;
  }

  .linkBtn {
    font-size: 12px;
    padding: 7px;
    font-weight: bold;
  }

  .likeContainer {
    right: -20px;
  }

}

@media (min-width: 1200px) {
  .card {
    grid-template-rows: 13rem 7rem auto auto;
  }


}